home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dr.bub / 96000.lha / 96000 / appb / b138c.asm < prev    next >
Assembly Source File  |  1992-04-28  |  1KB  |  19 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7. ; B.1.38.3    Unpack a 32 Bit Word Into Four Sign-extended Bytes  
  8. ;The following unpacks a 32 bit word into four 8 bit sign-extended bytes  in separate registers.  
  9. ;              Four 8 Bit Unpacks                            Program    ICycles 
  10. ;                                                            Words 
  11.      move              #data,d3.l    ;get data 
  12.     split  d3,d1                    ;d1=ssAB, d3=ABCD      1        1 
  13.     splitb d1,d0                    ;d0=sssA, d1=ssAB      1        1 
  14.     extb      d1                    ;d1=sssB               1        1 
  15.     splitb d3,d2                    ;d2=sssC               1        1 
  16.     extb      d3                    ;d3=sssD               1        1 
  17. ;                                                          ---      --- 
  18. ;                                                  Totals:  5        5 
  19.